package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.SqlStatementName;

/**
 * @author Bright Lee
 */
public final class DeallocatePreparedStatement implements SqlDynamicStatement, Statement {

    private int beginIndex;
    private int endIndex;
    private SqlStatementName sqlStatementName;

    public DeallocatePreparedStatement(int beginIndex, SqlStatementName sqlStatementName) {
        this.beginIndex = beginIndex;
        this.endIndex = sqlStatementName.getEndIndex();
        this.sqlStatementName = sqlStatementName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SqlStatementName getSqlStatementName() {
        return sqlStatementName;
    }

}
